<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="进行中项目列表" name="1" ref="listofProjects">
        <listofProjects v-if="activeName == '1'" />
      </el-tab-pane>
      <el-tab-pane label="历史项目列表" name="2" ref="listofLitems">
        <listofLitems v-if="activeName == '2'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import listofProjects from "../task/taskListfile/listofProjects.vue";
import listofLitems from "../task/taskListfile/listofLitems.vue";
export default {
  components: { listofProjects, listofLitems },
  data() {
    return {
      activeName: "1"
    };
  },
  methods: {
    handleClick() {}
  }
};
</script>
